<template>
    <div>
      <span>My Home</span>
    </div>
</template>


<script>
  import api from '../api/api'
    export default {
        name: "Home",
        data () {
            return {

            }
        },
        methods:{
            getDatas () {
                let opt = {url:"getAllMovie"};
                api(opt).then(res=>{
                  console.log(res)
                }).catch(err=>{

                })
            }
        },

        mounted() {
            this.getDatas();
        }

    }
</script>

<style scoped>

</style>
